<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<link href="../../css/style.css" rel="stylesheet" type="text/css" />
<s:form action="addItemsToCrossPromotion.htm" method="post" name="form" id="form">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td>
			<div class="blue-text16" style="margin: 0px 0px 0px 0px">
				<s:text name="addAuctionItem.para1"></s:text>
			</div>
			<div class="header-separator-bg" style="margin: 10px 5px 17px 0px"></div>
			<div style="margin: 0px 0px 12px 0px">
				<table border="0" cellpadding="0" cellspacing="0" width="100%">
					<!--------------------------------------------------------->
					<tbody>
						<tr>
							<td><input type="hidden" value="straightauction" name="type">
								<s:actionerror cssClass="error-text"/>
								<s:actionmessage cssClass="error-text"/>
								<s:fielderror cssClass="error-text" />
							</td>
						</tr>
						<tr>
							<td width="100%">
								<table width="100%" cellpadding="6" cellspacing="1"
									class="filepc">
									<tbody>
										<tr>
										<td colspan="9">
										<table width="100%">
										<tr>
															<td rowspan="3" width="5%" align="center" valign="top" class="grid-header-bg grid-header-text">
																<input type="checkbox" class="textfiled" name="Check_ctr" value="yes" onchange="CheckCheckAll(document.form.Check_ctr, document.form.check_list)" />
															</td>
															<td rowspan="3" width="10%" align="center" valign="top"
																class="grid-header-bg grid-header-text">
																<s:text name="sellingauction.photo" />
															</td>
															<td align="center" width="35%" valign="top"
																class="grid-header-bg grid-header-text">
																<a href="sellAuctions.htm?t=auction&sort=title"><s:text name="sellingauction.title" /> </a>
															</td>
															<td align="center" width="10%" valign="top"
																class="grid-header-bg grid-header-text">
																<s:text name="sellingauction.bids" />
															</td>
															<td align="center" width="10%" valign="top"
																class="grid-header-bg grid-header-text">
																<s:text name="sellingauction.bidder" />
															</td>
															<td align="center" width="10%" valign="top"
																class="grid-header-bg grid-header-text">
																<s:text name="sellingauction.quantity" />
															</td>
															<td align="center" width="15%" valign="top"
																class="grid-header-bg grid-header-text">
																<a href="sellAuctions.htm?t=auction&sort=price"><s:text name="sellingauction.price" /> </a>
															</td>
															<td rowspan="3" width="10%" align="center" valign="top"
																class="grid-header-bg grid-header-text">
																<a href="sellAuctions.htm?t=auction&sort=time"><s:text name="sellingauction.timeleft" /> </a>
															<td rowspan="3" width="5%" align="center" valign="top"
																class="grid-header-bg grid-header-text">
																<s:text name="sellingauction.action" />
															</td>
														</tr>
														<tr>
															<td align="center" valign="top"
																class="grid-header-bg grid-header-text">
																<s:text name="sellingauction.subtitle" />
															</td>
															<td align="center" valign="top"
																class="grid-header-bg grid-header-text">
																<s:text name="sellingauction.watching" />
															</td>

															<td align="center" valign="top"
																class="grid-header-bg grid-header-text">
																<s:text name="sellingauction.rating" />
															</td>
															<td align="center" valign="top"
																class="grid-header-bg grid-header-text">
																<s:text name="sellingauction.sold" />
															</td>
															<td align="center" valign="top"
																class="grid-header-bg grid-header-text">
																<s:text name="sellingauction.BuyNow" />
															</td>
														</tr>
														<tr>
															<td align="center" valign="top"
																class="grid-header-bg grid-header-text">
																<s:text name="sellingauction.itemnr" />
															</td>
															<td align="center" valign="top"
																class="grid-header-bg grid-header-text">
																<s:text name="sellingauction.view" />
															</td>
															<td align="center" valign="top"
																class="grid-header-bg grid-header-text">
																<s:text name="sellingauction.country" />
															</td>
															<td align="center" valign="top"
																class="grid-header-bg grid-header-text">
																<s:text name="sellingauction.available" />
															</td>
															<td align="center" valign="top"
																class="grid-header-bg grid-header-text">
																<s:text name="sellingauction.shipping" />
															</td>
														</tr>
													</table>
												<display:table name="itemsList" cellpadding="1"
													style="width: 100%;" cellspacing="1" requestURI=""
														id="row" class="common-text" pagesize="${listingOptions.sellingListItemsPerPage}">

													<display:column class="grid-bg common-text">
														<table width="100%">
														<tr>
															<td rowspan="2" width="5%" align="center" valign="top" class="grid-bg common-text">
																<input type="checkbox" class="textfiled" id="check_list"
																	value="<s:property value="#attr.row.itemId"/>"
																			name="check_list" />
															</td>
															<td rowspan="3" width="10%" align="center" valign="middle"
																class="grid-bg common-text">
																<s:if test="#attr.row.image != null">
																<a href="showItem.htm?cid=<s:property value="#attr.row.itemId"/>&p=createAuction" title="<s:property value="#attr.row.title"/>">
																<img
																	src="servlet/ImageServlet?dto=ItemsDTO&id=<s:property value="#attr.row.itemId"/>"
																		alt="" class="product-border" height="45" width="45">
																</a>
																</s:if>
																<s:else>
																	<img src="images/no_image.gif" alt="Photo">
																</s:else>
															</td>
															<td align="center" width="35%" valign="top"
																class="grid-bg common-text">
																<a href="showItem.htm?cid=<s:property value="#attr.row.itemId"/>&p=createAuction" title="<s:property value="#attr.row.title"/>">
																	<s:property value="#attr.row.title"/>
																</a>
															</td>
															<td align="center" width="10%" valign="top"
																class="grid-bg common-text">
																<s:property value="#attr.row.bids.size"/>
															</td>
															<td align="center" width="10%" valign="top"
																class="grid-bg common-text">
																<s:property value="#attr.row.bidder.userId"/>
															</td>
															<td align="center" width="10%" valign="top"
																class="grid-bg common-text">
																<s:property value="#attr.row.quantity"/>
															</td>
															<td align="center" width="15%" valign="top"
																class="grid-bg common-text">
																<fmt:formatNumber pattern="##.##" type="number" maxFractionDigits="2" value="${row.currentBid}" minFractionDigits="2" minIntegerDigits="1" />
															</td>
															<td rowspan="3" width="10%" align="center" valign="top"
																class="grid-bg common-text">
																<s:if test="%{#attr.row.closed == true}">
																	<span class="error-text"><b>Closed</b> </span>
																	<s:date name="#attr.row.endTime"
																		format="dd/MM/yyyy hh:mm:ss" />
																</s:if>
																<s:else>
																	<s:date name="#attr.row.endTime" nice="true" />
																</s:else>
															</td>
															<td align="center" valign="top" class="grid-bg common-text" id="mddm" width="10%" >
																		<a href="#" class="common-link"
																			onmouseover="mopen('<s:property value="#attr.row.itemId" />', this, 'common-link', 'right', <s:property value="#attr.row.itemId" />)"
																			onmouseout="mclosetime()"><s:text name="sellingauction.select"></s:text>  </a>
																		<div id="<s:property value="#attr.row.itemId" />" onmouseover="mcancelclosetime()"
																			onmouseout="mclosetime()" style="visibility: hidden">
																			<a href="sellAddAuctions.htm?itemId=<s:property value="#attr.row.itemId" />&action=edititem"><s:text name="sellingauction.editItem"></s:text> </a>
																			<a href="confirmCancel.htm?cancelId=<s:property value="#attr.row.itemId" />&type=auction"><s:text name="sellingauction.cancelItem"></s:text></a>
																			<a href="submitsimilarAuction.htm?itemId=<s:property value="#attr.row.itemId" />&action=submitsimilarAuction"><s:text name="sellingauction.submitSimilarItem" /></a>
																			<a href="sellAddAuctions.htm?itemId=<s:property value="#attr.row.itemId" />&action=copyAuction"><s:text name="sellingauction.copyItemData" /></a>
																			<s:if test="#attr.row.itemNote.id != null && #attr.row.itemNote.id != 0"><a href="addNotes.htm?cid=<s:property value="#attr.row.itemNote.id" />&action=editnote&p=sellAuctions?t=auction"><s:text name="sellingauction.editNote" /></a></s:if>
																			<s:else><a href="addNotes.htm?cid=<s:property value="#attr.row.itemId" />&action=addnote&p=sellAuctions?t=auction"><s:text name="sellingauction.addNote" /></a></s:else>
																		</div>
																	</td>
														</tr>
														<tr>
															<td align="center" valign="top"
																class="grid-bg common-text">
																<s:property value="#attr.row.subTitle"/>
															</td>
															<td align="center" valign="top"
																class="grid-bg common-text">
																<s:property value="#attr.row.noOfWatches"/>
															</td>

															<td align="center" valign="top"
																class="grid-bg common-text">
																<s:property value="#attr.row.userRating.rating"/>
															</td>
															<td align="center" valign="top"
																class="grid-bg common-text">
																<s:property value="#attr.row.sold"/>
															</td>
															<td align="center" valign="top"
																class="grid-bg common-text">
																<fmt:formatNumber pattern="##.##" type="number" maxFractionDigits="2" value="${row.buyPrice}" minFractionDigits="2" minIntegerDigits="1" />
															</td>
														</tr>
														<tr>
														<td>
															<s:if test="#attr.row.giftIcon != null ">
																<s:if test="%{#attr.row.giftIcon == 'Icon_New.gif'}">
																	<s:if test="%{#attr.row.newIcon == 'true'}">
																		<img src="images/<s:property value="#attr.row.giftIcon"/>" alt="New"
																			title="" border="0">
																	</s:if>
																</s:if>
																<s:else>
																	<img src="images/<s:property value="#attr.row.giftIcon"/>"
																	title="" border="0">
																</s:else>
															</s:if>
														</td>
															<td align="center" valign="top"
																class="grid-bg common-text">

																<s:property value="#attr.row.itemId"/>

																<s:if test="#attr.row.HomePageFeatured == true">
																	<img src="images/featured.gif" title="Featured"
																		border="0">
																</s:if>
																<s:if test="#attr.row.bids.size >= listingOptions.coolItemBids">
																	<!-- bids.size >= listingOptions.coolItemBids -->
																	<img src="images/cool.gif" title="Cool" border="0">
																</s:if>
																<s:elseif test="#attr.row.bids.size >= listingOptions.hotItemBids">
																	<!-- bids.size >= listingOptions.coolItemBids -->
																	<img src="images/hot.gif" title="Hot" border="0">
																</s:elseif>
																<s:if test="#attr.row.buyPrice > 0.0">
																	<img src="images/buyitnow.gif" title="Buy Now"
																		border="0">
																</s:if>
															</td>
															<td align="center" valign="top"
																class="grid-bg common-text">
																<s:property value="#attr.row.views"/>
															</td>
															<td align="center" valign="top"
																class="grid-bg common-text">
																<s:property value="#attr.row.bidder.country.categoryName"/>
															</td>
															<td align="center" valign="top"
																class="grid-bg common-text">
																<s:property value="#attr.row.available"/>
															</td>
															<td align="center" valign="top"
																class="grid-bg common-text">
																<fmt:formatNumber pattern="##.##" type="number" maxFractionDigits="2" value="${row.shipPayment}" minFractionDigits="2" minIntegerDigits="1" />
															</td>
														</tr>
														<tr>
															<td class="common-text" colspan="9" bgcolor="#ffffdd">
																<s:property value="#attr.row.itemNote.note" />
															</td>
														</tr>
													</table>
													</display:column>
												</display:table>
											<tr>
												<td valign="middle" colspan="9" class="grid-bg common-text">
													<table border="0" cellspacing="0" cellpadding="0">
														<tr>
															<td class="btn-grey-left1"></td>
															<td class="btn-grey-middle1 ">
																<s:submit value="Cross Promotion" key="sellingauction.crossPromotion" theme="simple"
																	cssClass="submit-btn-common" />
															</td>
															<td class="btn-grey-right1"></td>
														</tr>
													</table>
												</td>
											</tr>
										</tbody>
								</table>
							</td>
						</tr>

					</tbody>
				</table>
			</div>
		</td>
	</tr>
</table>
</s:form>

<!--------------------------------------------------------->